package com.sneaker.shower.mapstruct;

import com.sneaker.shower.entity.domain.sys.SysUserDO;
import com.sneaker.shower.entity.dto.UserDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import org.springframework.stereotype.Component;

@Component
@Mapper(componentModel = "spring")
public interface SysUserMapStruct {
    SysUserMapStruct INSTANCE = Mappers.getMapper(SysUserMapStruct.class);

    UserDTO do2DTO(SysUserDO user, String type);

    UserDTO do2DTO(SysUserDO user);
}
